package www.reviewW.data;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

public class Knowledge implements Serializable {
    private String id; //知识点标识
    private String title; //知识点标题
    private Date createDate; //创建时间
    private String content; //知识点详细


    public Knowledge(String title) {
        this.title = title;
        this.id = UUID.randomUUID().toString();
        this.createDate = new Date();
    }
    public Knowledge(String title,String content) {
        this.title = title;
        this.content = content;
        this.id = UUID.randomUUID().toString();
        this.createDate = new Date();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
